<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<template id="tp1">
  <div>
    <h2>stupid mother fucker</h2>
    <slot><button>A</button></slot>
  </div>
</template>



<div id="app">
  <cpn></cpn>
  <cpn><h2>A fuck u</h2></cpn>
  <cpn>
    <h2>lether</h2>
    <p>man</p>
  </cpn>
  <cpn></cpn>
</div>

<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el:"#app",
    data: {
      message:"stupid mother fucker"
    },
    components:{
      cpn:{
        template:'#tp1',
      }
    }
  })
</script>

</body>
</html>